#include <iostream>
#include "arrFactory.h"
#include "SortingProvider.h"
#define LENGTH 1000
using namespace std;

int main()
{
    int arr[LENGTH], n = 10;
    srand(time(NULL));
    ArrFactory::randomArr(arr, &n);
    ArrFactory::displayArr(arr, n);
    SortingProvider::BubbleSort(arr, n);
    ArrFactory::displayArr(arr, n);

    ArrFactory::randomArr(arr, &n);
    ArrFactory::displayArr(arr, n);
    SortingProvider::InsertionSort(arr, n);
    ArrFactory::displayArr(arr, n);

    ArrFactory::randomArr(arr, &n);
    ArrFactory::displayArr(arr, n);
    SortingProvider::SelectionSort(arr, n);
    ArrFactory::displayArr(arr, n);

    ArrFactory::randomArr(arr, &n);
    ArrFactory::displayArr(arr, n);
    SortingProvider::MergeSort(arr, n);
    ArrFactory::displayArr(arr, n);
    return 0;
}
